package com.umeng.p7qimokaoshi.Adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.mymvp.view.adapter.BaseAdapter;
import com.example.mymvp.view.adapter.BaseViewHolder;
import com.umeng.p7qimokaoshi.Bean.DoemList;
import com.umeng.p7qimokaoshi.Bean.Dome;
import com.umeng.p7qimokaoshi.R;

import java.util.List;

public class MyAdapter extends BaseAdapter<DoemList.ListBean> {


    public MyAdapter(List<DoemList.ListBean> datas, Context context, int layoutId) {
        super(datas, context, layoutId);
    }

    @Override
    public void bindData(BaseViewHolder holder, DoemList.ListBean listBean) {
        ImageView img = holder.getView(R.id.Iv_img);
        ImageView img_2 = holder.getView(R.id.Iv_img_2);
        ImageView img_3 = holder.getView(R.id.Iv_img_3);
        ImageView img_4 = holder.getView(R.id.Iv_img_4);
//        TextView name = holder.getView(R.id.Tv_name);

        Glide.with(context).load(listBean.getThumb()).into(img);
        Glide.with(context).load(listBean.getThumb()).into(img_2);
        Glide.with(context).load(listBean.getThumb()).into(img_3);
        Glide.with(context).load(listBean.getThumb()).into(img_4);
//        name.setText(listBean.getTitle());



    }
}








